package rollercoaster.railway.tests;

import java.util.HashMap;
import java.util.Map;

import rollercoaster.railway.XMLBinarioDataReader;

public class XMLBinarioReaderTest {
	public static void main(String[] args) {
		
		XMLBinarioDataReader reader=new XMLBinarioDataReader("classic.xml");
		System.out.println("traj");
		HashMap<String, String> map=reader.getTrajectoryInfo();
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}
		System.out.println("pos");
		map=reader.getSupportPositionInfo();
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}

		System.out.println("middle");
		map=reader.getTubeParameters("middle");
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}
		System.out.println("lateral");
		map=reader.getTubeParameters("lateral");
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}
		System.out.println("little");
		map=reader.getTubeParameters("little");
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}
		System.out.println("support");
		map=reader.getTubeParameters("support");
		for (Map.Entry<String, String> entry : map.entrySet()) {
			System.out.println(entry.getKey()+"  "+entry.getValue());
		}
	}
}
